/**
 * \file error.h
 * \brief Error class header
 * \author Marc Laval
 * \version 0.1
 * \date 10/2011
 *
 */

#include "defines.h"
#include "types.h"
#include <string.h>

#ifndef _ERROR_H_
#define _ERROR_H_

/*! \class Error
 *  \brief Provide simple data structure to handle error messages
 */
class Error
{
public:
    /*! \brief Create an Error with a message "msg"
     *  \param msg String describing the error
     */
    Error(std::string msg);

    /*! \brief Standard destructor
     *  Dose nothing special, no pointer here.
     */
    virtual ~Error();

    /*! \brief Accessor for the error message
     *  \return The error message as string
     */
    std::string msg();

private:
    /*! \brief Private var used to store the message
     */
    std::string m_msg;

};

#endif
